<?php

namespace app\classes\validate;


use think\Validate;

class ClassesEditValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'course_id' => 'require',
        'teacher_id' => 'require',
        'start_lesson_time' => 'require|date',
        'class_start_week' => 'require',
        'class_time_start' => 'require',
        'class_time_end' => 'require',
        'signup_start'=>'require|date',


    ];
    protected $message = [
        'name.require' => '班级名字不能为空',
        'course_id.require' => '关联课程不能为空',
        'class_start_week.require' => '每周时间不能为空',
        'class_time_start.require' => '班级的开始时间不能为空',
        'class_time_end.require' => '班级的结束时间不能为空',
        'teacher_id.require' => '授课老师不能为空',
        'start_lesson_time.require' => '开课时间不能为空',
        'start_lesson_time.date' => '开课时间格式不对,参照为01/01/2017',
        'school_id.require' => '校区不能为空',
        'classroom_id.require' => '教室不能为空',

        'signup_start.require' => '报名时间开始不能为空',
        'signup_start.date' => '报名开始时间格式不对,参照为01/01/2017',





    ];

}